package com.example.fittrack.controller;

import com.example.fittrack.R.R;
import com.example.fittrack.domain.bo.LoginBo;
import com.example.fittrack.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@RequiredArgsConstructor
@RequestMapping("/user")
@RestController
public class UserController {

    private final UserService userService;


    @PostMapping("/login")
    public R login(@RequestBody @Valid LoginBo bo){


        return R.SUCCESS("操作成功");
    }


}
